//
//  EGMAnimation.h
//  EGMLibrary
//
//  Created by hh on 14-9-17.
//  Copyright (c) 2014年 egoman. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class CABasicAnimation;
@class CAAnimation;
@class CAAnimationGroup;
@class CAKeyframeAnimation;
//@class CGMutablePathRef;


@interface EGMAnimation : NSObject
+(CABasicAnimation *)blinkWithDuration:(float)duration;
+(CABasicAnimation *)moveToX:(NSNumber *)x duration:(float)time;
+(CABasicAnimation *)moveToY:(NSNumber *)y duration:(float)time;
+(CABasicAnimation *)scale:(NSNumber *)scale orgin:(NSNumber *)origin duration:(float)duration Repeat:(float)repeatCount;
+(CAAnimationGroup *)groupAnimation:(NSArray *)animationArray duration:(float)duration repeat:(float)repeatCount;
//+(CAKeyframeAnimation *)pathAnimation:(CGMutablePathRef)path duration:(float)duration repeat:(float)repeatCount;
+(CABasicAnimation *)rotateWithDuration:(float)duration degree:(float)degree direction:(int)direction repeatCount:(int)repeatCount;


+(void)transformIntoRect:(CGRect)rect duration:(float)duration target:(UIView*)view;
+(void)exitAppAnimationsForView:(UIView*)view duration:(NSInteger)duration target:(id)target stopSelector:(SEL)selector;
@end
